# Contributor: Marten Ringwelski <git+alpine@maringuu.de>
# Maintainer: Marten Ringwelski <git+alpine@maringuu.de>
pkgname=py3-starlette
pkgver=0.20.1
pkgrel=0
pkgdesc="A lightweight ASGI framework/toolkit, which is ideal for building async web services in Python"
url="https://github.com/encode/starlette"
arch="noarch !armhf !ppc64le" # limited by py3-anyio
license="MIT"
depends="
	py3-anyio
	python3
	"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/encode/starlette/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/starlette-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
4b10cf402bb3b3f96ec0bbb8e5fbd1e2abac4cbcf25a099bafad88fe02653d45e602e683f712251bb6dc230bc0d0754b2c960be2361239dc62e7e96b8b20ce6b  py3-starlette-0.20.1.tar.gz
"
